
#pragma once

#include "hgeUtil.h"
#include "View.h"

class BallView : public View
{
public:

	// Constructor
	BallView();

	// Destructor
	~BallView();

	// Process
	View *Process();

	// Render
	void Render();

private:

	// Menu sound
	HEFFECT snd;
	
	// Particle
	hgeQuad particle;

	// Some "gameplay" variables and constants
	float x, y;
	float dx, dy;

	const float speed;
	const float friction;

	// This function plays collision sound with
	// parameters based on sprite position and speed
	void boom();
};